﻿@model IEnumerable<Bibilioteca.Models.Socio>

@{
    ViewBag.Title = "Socios";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Socios</h2>
<p>@Html.ActionLink("Crear", "Create")</p>
<table style="border-color:Black; border:1px">
<tr style="font-style:oblique">
    <td>ID</td> <td>Nombre</td> <td>Apellido</td> 
    <!-- <td>Domicilio</td> <td>E-mail</td> <td>Reservas</td> <td>Prestamos</td> --><td>Habilitado?</td>
</tr>
@foreach (var item in Model)
{
    <tr>
        <td> @item.Id </td>
        <td> @item.Nombre </td>
        <td> @item.Apellido </td>
        
         @if (item.Habilitado)
         {
             <td>SI</td>
         }
         @if (!item.Habilitado)
         {
             <td>NO</td>
         }
         
         <td> @Html.ActionLink("Detalles", "Details", new { id = item.Id }) </td>
         <td> @Html.ActionLink("Editar", "Edit", new { id = item.Id }) </td>
         <td> @Html.ActionLink("Borrar", "Delete", new { id = item.Id }) </td>

    </tr>
}
</table>